import type {App} from 'vue'
import VueLazyLoad from 'vue3-lazyload'
import {requireErrorImg} from "@/utils/utils";

export function setupDirectives(app: App) {
    // 图片懒加载
    app.use(VueLazyLoad, {
        error: requireErrorImg()
    })
}